package DBLayer;

import Model.SaleOrder;
import java.util.ArrayList;

/**
 *
 * @author Administrator
 */
public interface DbInterfaceSaleOrder {
	public ArrayList<SaleOrder> getAllSaleOrders(String wClause, boolean retrieveAssociation);
	public SaleOrder getById(String id, boolean retrieveAssociation);
	public SaleOrder getByCustomerId(String id, boolean retrieveAssociation);
	public SaleOrder getByEmployeeId(String id, boolean retrieveAssociation);
	public SaleOrder getByInvoiceId(String id, boolean retrieveAssociation);
	public int insertSaleOrder(SaleOrder order);
	public int updateSaleOrder(SaleOrder order);
	public int deleteSaleOrder(String saleNumber);
}
